#ifndef SCKWD_H
#define SCKWD_H
//
#include <QtSql>
#include <QtGui>
//
class sckwd : public QDialog
{
Q_OBJECT
    private:
    QModelIndex mdIndex;
    QTableView * view;
    QSqlQueryModel *model;
    QWidget *parent;
    QStringList  rt;
    int fieldsCount;		//
    public:
    sckwd(QWidget *);
    void keyPressEvent(QKeyEvent*);
    void showEvent(QShowEvent*);
    // count value is  the left fields number will to be shown
    QStringList getValue(QSqlQuery * , int showCount); //show in center
    QStringList getValue(QSqlQuery * , int showCount , int x , int y);//show top left point at x,y ,dialog size automatically
    QStringList getValue(QSqlQuery * , int showCount , int x , int y,int linesCount);
    QStringList getValue(QSqlQuery * , int showCount , int x , int y , int w, int linesCount);
    QStringList getValue(QSqlQuery * , QList<int> , int x , int y);//show top left point at x,y ,field size indicated in a TList
};
#endif
